<template>
	<view class="container">
		<view class="t-status">
			等待平台发货
		</view>
		
		<view class="content">
			<view class="address bg-box">
				<view class="city">
					河南省 郑州市 中原区 
				</view>
				<view class="a-info">
					详细地址详细地址详细地址详细地址详
				</view>
				<view class="user">
					张三 123****4569
				</view>
			</view>
			
			<view class="wuliu bg-box">
				<view class="left">
					<image :src="$img_path('/pagesRegion/7.png')" mode="widthFix"></image>
					<view class="text">
						<view class="t-1">
							您的订单已进入【季阳仓001】准备出库
						</view>
						<view class="time">
							2023-06-06  18:00:00
						</view>
					</view>
				</view>
				<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
			</view>
			
			<view class="goods bg-box">
				<view class="g-item">
					<image :src="$img_path('/mall/5.png')" mode="widthFix"></image>
					<view class="right">
						<view class="name-price">
							<view class="name one-row">
								商品名称商品名称商品名称商品名称商品名称
							</view>
							<view class="price">
								¥ <text>100.</text>00
							</view>
						</view>
						<view class="text">
							<view class="spec more-row" :style="{'--row-num':2}">
								规格名称规格名称/规格
								名称规格名称
							</view>
							<view class="r">
								<view class="num">
									x 1
								</view>
								<button>退款成功</button>
							</view>
						</view>
					</view>
				</view>
			</view>
			
			<view class="order-info bg-box">
				<view class="order_item_box">
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">商品总价</view>
						<view class="service_item_price">
							￥200.00
						</view>
					</view>
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">订单运费</view>
						<view class="service_item_price">
							￥10.00
						</view>
					</view>
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">优惠券</view>
						<view class="service_item_price" style="color: #FF4A4A;">-￥10.00</view>
					</view>
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">实付款</view>
						<view class="service_item_price">
							￥200.00
						</view>
					</view>
				</view>
				
				<view class="order_item_box">
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">订单编号</view>
						<view class="service_item_price">
							464484651112244874898
							<text style="margin:0 8rpx;">|</text>
							<text @click="clickCopy('464484651112244874898')">复制</text>
						</view>
					</view>
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">下单时间</view>
						<view class="service_item_price">
							2024-05-18 15:00:00
						</view>
					</view>
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">支付方式</view>
						<view class="service_item_price">
							微信支付
						</view>
					</view>
					<view class="flex_ac_jsb service_item">
						<view class="service_item_name">支付时间</view>
						<view class="service_item_price">
							2024-05-18 15:00:00
						</view>
					</view>
					<view class="flex_ac_jsb service_item" style="align-items: flex-start;">
						<view class="service_item_name">订单留言</view>
						<view class="service_item_price order_remark">
							<text class="one-row">内容内容内容内容内容内容内容内容内容内容</text>
							<image :src="$img_path('/mine/r_img.png')" mode="widthFix"></image>
						</view>
					</view>
				</view>
			</view>
			
			
			<view class="pingjia bg-box">
				<view class="title">
					评价信息
				</view>
				<view class="star">
					<image v-for="item in 5" :key="item" :src="$img_path('/pagesMine/40.png')" mode="widthFix"></image>
				</view>
				<view class="con-text">
					内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容
				</view>
				<view class="p-img">
					<view v-for="(item,i) in 1" :key="i" class="img-box">
						<image :src="$img_path('/mall/5.png')" @click="previewImage" mode="aspectFill"></image>
					</view>
				</view>
				<view class="cz-box">
					<text>浏览 1000</text>
					<view class="dz">
						<image v-if="false" :src="$img_path('/pagesMine/41.png')" mode="widthFix"></image>
						<image v-else :src="$img_path('/pagesMine/42.png')" mode="widthFix"></image>
						<text>100</text>
					</view>
				</view>
				
				<view class="huifu">
					<view class="pt" v-if="false">
						平台回复：内容内容内容内容内容内容内容内容内容内容内容内容
					</view>
					
					<view class="m-pj" v-else>
						<view class="text">
							内容内容内容内容内容内容内容内容内容内容内容内容内容内容内容
						</view>
					</view>
				</view>
			</view>
			
		</view>
	</view>
</template>

<script>
	import {
		getCopy
	} from '@/utils/uni_api.js'
	export default {
		data() {
			return {
				
			};
		},
		onLoad() {
			uni.setNavigationBarTitle({
				title:'代发货'
			})
		},
		methods:{
			clickCopy(text) {
				getCopy(text)
			},
		}
	}
</script>

<style lang="scss" scoped>
.container{
	.t-status{
		font-weight: 400;
		font-size: 32rpx;
		color: #000000;
		line-height: 44rpx;
		text-align: center;
		padding: 10rpx 0 18rpx;
		background-color: #FFFFFF;
	}
	.bg-box{
		background-color: #FFFFFF;
		border-radius: 20rpx;
		box-sizing: border-box;
		margin-top: 20rpx;
	}
	.content{
		padding: 0 22rpx;
		box-sizing: border-box;
		padding-bottom: constant(safe-area-inset-bottom);
		padding-bottom: env(safe-area-inset-bottom);
		.address{
			padding: 22rpx 24rpx 36rpx;
			.city{
				font-weight: bold;
				font-size: 30rpx;
				color: #333333;
				line-height: 42rpx;
			}
			.a-info{
				font-weight: 400;
				font-size: 28rpx;
				color: #999999;
				line-height: 40rpx;
				margin-top: 20rpx;
			}
			.user{
				font-weight: 400;
				font-size: 28rpx;
				color: #333333;
				line-height: 40rpx;
				margin-top: 20rpx;
			}
		}
		
		.goods{
			padding: 4rpx 22rpx 24rpx;
			.g-item{
				display: flex;
				padding-top: 20rpx;
				image{
					width: 180rpx;
					height: 180rpx;
					border-radius: 20rpx;
				}
				.right{
					width: calc(100% - 180rpx);
					padding-left: 20rpx;
					box-sizing: border-box;
					.name-price{
						display: flex;
						align-items: center;
						justify-content: space-between;
						.name{
							width: calc(100% - 180rpx);
							font-weight: bold;
							font-size: 34rpx;
							color: #333333;
							line-height: 48rpx;
						}
						.price{
							text-align: right;
							font-weight: 900;
							font-size: 34rpx;
							color: #FF2E2E;
							line-height: 58rpx;
							text{
								font-size: 42rpx;
							}
						}
					}
					.text{
						display: flex;
						align-items: flex-start;
						justify-content: space-between;
						margin-top: 24rpx;
						.spec{
							width: calc(100% - 162rpx);
							font-weight: bold;
							font-size: 28rpx;
							color: #333333;
							line-height: 40rpx;
						}
						.r{
							.num{
								font-weight: bold;
								font-size: 28rpx;
								color: #333333;
								line-height: 40rpx;
								text-align: right;
							}
							button{
								width: 142rpx;
								height: 44rpx;
								background: #FFFFFF;
								border-radius: 8rpx 8rpx 8rpx 8rpx;
								border: 2rpx solid #FFA2A2;
								font-weight: 400;
								font-size: 24rpx;
								color: #FF4A4A;
								line-height: 44rpx;
								margin-top: 16rpx;
							}
						}
					}
				}
			}
		}
		
		.order-info{
			padding: 0 22rpx 14rpx;
			box-sizing: border-box;
			.order_item_box{
				padding: 8rpx 0 22rpx;
				box-sizing: border-box;
				&:first-child{
					border-bottom: 2rpx solid #EEEEEE;
				}
				&:last-child{
					padding-top: 20rpx;
				}
			}
			.service_item{
				padding: 20rpx 0;
			}
			
			.service_item:last-child{
				margin-bottom: 0rpx;
			}
			
			.service_item_name{
				font-size: 30rpx;
			}
			
			.service_item_price{
				font-weight: bold;
				font-size: 30rpx;
				color: #000000;
				line-height: 42rpx;
			}
			.order_remark{
				display: flex;
				align-items: center;
				justify-content: flex-end;
				text{
					display: block;
					width: 380rpx;
				}
				image{
					width: 10rpx;
					height: 18rpx;
				}
			}
		}
		
		.wuliu{
			padding: 32rpx 30rpx 30rpx 24rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.left{
				display: flex;
				align-items: flex-start;
				image{
					width: 34rpx;
					height: 27rpx;
					margin-top: 3rpx;
				}
				.text{
					padding-left: 18rpx;
					.t-1{
						font-weight: 400;
						font-size: 28rpx;
						color: #000000;
						line-height: 40rpx;
					}
					.t-2{
						font-weight: 400;
						font-size: 28rpx;
						color: #8A8A8A;
						line-height: 40rpx;
						margin-top: 14rpx;
					}
				}
			}
			&>image{
				width: 16rpx;
				height: 29rpx;
			}
		}
		
		
		.pingjia{
			padding: 30rpx 28rpx 32rpx;
			.title{
				font-weight: bold;
				font-size: 32rpx;
				color: #000000;
				line-height: 44rpx;
			}
			.star{
				display: flex;
				align-items: center;
				margin-top: 20rpx;
				image{
					width: 46.51rpx;
					height: 44.58rpx;
					margin-right: 18rpx;
				}
			}
			.con-text{
				font-weight: 400;
				font-size: 28rpx;
				color: #848484;
				line-height: 40rpx;
				margin-top: 22rpx;
			}
			.p-img{
				width: 100%;
				display: flex;
				flex-wrap: wrap;
				margin-top: 4rpx;
				.img-box{
					width: calc(33.33% - 13.33rpx);
					height: 0;
					padding-bottom: calc(33.33% - 13.33rpx);
					position: relative;
					margin-top: 16rpx;
					&:not(:nth-of-type(3n+1)){
						margin-left: 18rpx;
					}
					image{
						position: absolute;
						width: 100%;
						height: 100%;
						border-radius: 20rpx;
					}
				}
			}
			.cz-box{
				display: flex;
				align-items: center;
				justify-content: space-between;
				margin-top: 20rpx;
				&>text{
					font-weight: 400;
					font-size: 28rpx;
					color: #848484;
					line-height: 40rpx;
				}
				.dz{
					display: flex;
					align-items: flex-start;
					image{
						width: 33.61rpx;
						height: 32.16rpx;
					}
					text{
						font-weight: bold;
						font-size: 28rpx;
						color: #333333;
						line-height: 40rpx;
						margin-left: 8rpx;
					}
				}
			}
			.huifu{
				padding: 16rpx 24rpx;
				box-sizing: border-box;
				margin-top: 20rpx;
				background: #EEEEEE;
				border-radius: 16rpx;
				.pt{
					font-weight: 400;
					font-size: 28rpx;
					color: #484848;
					line-height: 40rpx;
				}
				
				.m-pj{
					.text{
						font-weight: 400;
						font-size: 28rpx;
						color: #484848;
						line-height: 40rpx;
						margin-top: 12rpx;
					}
				}
			}
		}
	}
}
</style>
